The Movie Toolbox maintains state information for every application using it. In order to set up this information for your application, you must initialize the Movie Toolbox. You initialize the Movie Toolbox by calling the EnterMovies function (described on EnterMovies ).
You should call the EnterMovies function after you have initialized other Macintosh managers. Before calling this function you should make sure that the Movie Toolbox is available by calling the Gestalt Manager, as discussed in "Determining Whether the Movie Toolbox Is Installed" .
If you are writing a standard application, you do not need to call the ExitMovies function. Call the ExitToShell routine instead.
If you are writing a code resource, you may need to call the ExitMovies function (described on ExitMovies ), which allows the Movie Toolbox to clean up after your application has finished. After calling ExitMovies , you cannot make further calls to the Movie Toolbox.